//
//  ZXY_WebVC.m
//  LawProjection
//
//  Created by 宇周 on 14/11/2.
//  Copyright (c) 2014年 duostec. All rights reserved.
//

#import "ZXY_WebVC.h"

@interface ZXY_WebVC ()
{
    NSString *urlString;
}
@property (weak, nonatomic) IBOutlet UIWebView *currentWeb;

@end

@implementation ZXY_WebVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.currentWeb loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
    [self initNavi];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)initNavi
{
    [self setLeftNaviItem:@"back_arrow"];
    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName, nil]];
    [self setRightNaviItem:@"home_phone"];
}

- (void)setDownLoadURL:(NSString *)stringURL
{
    urlString = stringURL;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
